﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace UcAsp.Controllers
{
    public class InfoController : Controller
    {
        //
        // GET: /Info/

        public ActionResult Index(string ad)
        {
            ViewData["Data"] = @UcAsp.WorkFrame.AdvPositions.GetAdvPositions(ad.ToUpper()).AdvHtml;
            return View();
        }
        public ActionResult Main(string ad, string path)
        {
            ViewBag.Title = @UcAsp.WorkFrame.AdvPositions.GetAdvPositions(ad.ToUpper()).AdvChinaName;
            ViewData["Data"] = @UcAsp.WorkFrame.AdvPositions.GetAdvPositions(ad.ToUpper()).AdvHtml;
            return View("~/views/Info/" + path + ".cshtml");
        }
    }
}
